<?php
class AppController extends Controller {	
	var $components = array('MenuCreator');
	
	function getMenuElements(){
		$menuElements =  $this->MenuCreator->getMenuElements();		
		return $menuElements;
	}
	
	function checkSession(){        
        if (!$this->Session->check('User')){        
            $this->Session->setFlash('Para acceder a los modulos primero debes iniciar sesi&oacute;n.');            
           	$this->redirect('/');           	
        }
        
        return true;
    }
}
?>